package com.shortvedio.content.es;


import com.shortvedio.base.model.po.VideosContent;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
public class VideosContentDoc {
    private Long id;
    private String videosMd;
    private String title;
    private String description;
    private String filePath;
    private LocalDateTime uploadTime;
    private Long userId;
    private String city;
    private Long type;
    private Integer status;
    private Long fileSize;
    private String coverSrc;
    private String typeName;

    public VideosContentDoc(VideosContent videosContent) {
        this.id = videosContent.getId();
        this.videosMd = videosContent.getVideosMd();
        this.title = videosContent.getTitle();
        this.description = videosContent.getDescription();
        this.filePath = videosContent.getFilePath();
        this.uploadTime = videosContent.getUploadTime();
        this.userId = videosContent.getUserId();
        this.city = videosContent.getCity();
        this.type = videosContent.getType();
        this.status = videosContent.getStatus();
        this.fileSize = videosContent.getFileSize();
        this.coverSrc = videosContent.getCoverSrc();
        this.typeName = videosContent.getTypeName();
    }
}
